﻿module TextRenderingTests

open NUnit.Framework
open TextRendering
open MockDisplayElements

[<TestFixture>]
type testStyle() = 

    [<Test>]
    member self.testComputeText() =
        let c = computeText "abcd " (SText("abcd "))
        Assert.AreEqual(44.0, c.Width, 0.1)
        Assert.AreEqual(55.0, c.WidthIncludingTrailingWhitespace, 0.1)
        Assert.AreEqual(23.4, c.Height, 0.1)

